﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SQL_Live_Monitor
{
    class DBlibCore
    {
        public StringBuilder ConnectionString;


        /// <summary>
        /// virtual connect to DB method.  Overridden in the other classes
        /// </summary>
        /// <param name="instance"></param>
        /// <param name="trusted"></param>
        /// <param name="uid"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        public virtual int Connect(string instance, int trusted = 1, string uid = null, string pwd = null)
        {
            return (0);
        }


        /// <summary>
        /// Virtual Method to be overridden in the other classes
        /// </summary>
        /// <returns></returns>
        public virtual int Disconnect()
        {
            return (0);
        }
    }
}
